<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>流浪汉</title>
    <meta
            content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
            name="viewport">
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/style.min.css">
    <link rel="stylesheet" href="/css/common.min.css">
</head>
<body class="hold-transition skin-blue sidebar-mini">

<div class="wrapper" id="dpLTE" v-cloak>
    <div style="display: none;">
        <input id="host" th:value="${#httpServletRequest.getAttribute('basePath')+'/'}" />
    </div>
    <header class="main-header">
        <a href="javascript:void(0);" class="logo"> <span
                class="logo-mini"><b>LL</b></span> <span class="logo-lg"><b>LLH</b></span>
        </a>
        <nav class="navbar navbar-static-top" role="navigation">
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas"
               role="button" @click="hideMenu"> <span class="sr-only">Toggle
						navigation</span>
            </a>
            <div style="float: left; color: #fff; padding: 15px 10px;">欢迎
                {{admin.name}}</div>
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li><a href="index.html"><i
                            class="fa fa-home"></i> &nbsp;首页</a></li>
                    <li><a href="index_tab.html" target="_blank"><i
                            class="fa fa-bookmark"></i> &nbsp;TABS</a></li>
                   <!-- <li><a href="http://dp-dev.mydoc.io/" target="_blank"><i
                            class="fa fa-paper-plane"></i> &nbsp;项目文档</a></li>-->
                    <!--<li><a href="http://www.chenlintech.com/" target="_blank"><i
                            class="fa fa-info-circle"></i> &nbsp;关于作者</a></li>-->
                    <li><a href="javascript:;" @click="updatePassword"><i
                            class="fa fa-lock"></i> &nbsp;修改密码</a></li>
                    <li><a href="javascript:;" @click="logout"><i
                            class="fa fa-sign-out"></i> &nbsp;退出系统</a></li>
                </ul>
            </div>
        </nav>
    </header>

    <!-- 导航菜单 -->
    <aside class="main-sidebar">
        <section class="sidebar">
            <ul class="sidebar-menu" id="sidebar-menu">
                <li class="header">导航菜单</li>
                <menu-item :item="item" v-for="item in menuList"></menu-item>
            </ul>
        </section>
    </aside>
    <!-- 路径导航 -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <ol class="breadcrumb" id="nav_title"
                style="position: static; float: none;">
                <li class="active"><i class="fa fa-home"
                                      style="font-size: 20px; position: relative; top: 2px; left: -3px;"></i>
                    &nbsp; 首页</li>
                <li class="active">{{navTitle}}</li>
            </ol>
        </section>

        <!-- 主界面 -->
        <section class="content" style="background: #fff;">
            <iframe scrolling="yes" frameborder="0"
                    style="width: 100%; min-height: 200px; overflow: visible; background: #fff;"
                    :src="main" id="main" name="main"></iframe>
        </section>
    </div>

    <footer class="main-footer">
        <div class="pull-right hidden-xs">Version 1.0.0</div>
        Copyright &copy; 2017 <a href="http://www.chenlintech.com"
                                 target="_blank">www.chenlintech.com</a> All Rights Reserved
    </footer>

    <div class="control-sidebar-bg"></div>

    <!-- 修改密码 -->
    <div id="passwordLayer" class="container-fluid" style="display: none;">
        <table class="form">
            <tr>
                <td class="formTitle">账号</td>
                <td class="formValue"><span class="label label-success"
                                            style="vertical-align: bottom;">{{admin.username}}</span></td>
            </tr>
            <tr>
                <td class="formTitle">原密码</td>
                <td class="formValue"><input type="password"
                                             class="form-control" v-model="pswd" placeholder="原密码" /></td>
            </tr>
            <tr>
                <td class="formTitle">新密码<font face="宋体">*</font></td>
                <td class="formValue"><input type="text" class="form-control"
                                             v-model="newPswd" placeholder="新密码" /></td>
            </tr>
        </table>
    </div>

</div>

<script src="/libs/jquery.min.js"></script>
<script src="/libs/vue.min.js"></script>
<script src="/libs/router.js"></script>
<script src="/libs/bootstrap.min.js"></script>
<script src="/libs/jquery.slimscroll.min.js"></script>
<script src="/plugins/layer/layer.js"></script>
<script src="/js/common.js"></script>
<script src="/js/index.js"></script>
</body>
</html>
